<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/15
 * Time: 9:30
 */

namespace app\common\validate;

use think\Validate;

class SupplyChain extends Validate{
	
	protected $rule = [
		'order_no' => 'require',
		'sku' => 'require',
		'shipping_code' => 'require',
		'shipping_no' => 'require'
	];
	
	protected $message = [
		'order_no.require' => '订单号不能为空',
		'sku' => 'sku不能为空',
		'shipping_code' => '快递代码不能为空',
		'shipping_no' => '快递单号不能为空'
	];
	
	protected $scene = [
		'shipping' => ['order_no', 'sku', 'shipping_code', 'shipping_no']
	];
	
	protected $regex = [
	
	];
}